<template>
  <h1>$emit</h1>
  <button @click="fn">按钮</button>
</template>

<script setup>
import {defineEmits} from "vue"
const emit = defineEmits("myClick");

const fn = ()=>{
  emit("myClick","1000万")
}
</script>